package com.xiaoke.domain.dtos;

import javax.validation.constraints.NotBlank;

/**
 * @Author xiaoke
 * @Description 登录接口请求参数
 * @Date 2023/7/24 13:13
 */
public class LoginDto {
    @NotBlank(message = "用户名不能为空")
    private String username;
    @NotBlank(message = "密码不能为空")
    private String password;
    @NotBlank(message = "验证码key不能为空")
    private String key;
    @NotBlank(message = "验证码结果不能为空")
    private String code;

    public LoginDto() {
    }

    public LoginDto(String username, String password, String key, String code) {
        this.username = username;
        this.password = password;
        this.key = key;
        this.code = code;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
